/*
Author: JAG
Date: 01/21/2025
Purpose: Master file for PACTO project.  This file does NOT containing the cleaning code
but rather only the analysis.
*/

* 0. preamble ------------------------------------------------------------------ 
clear all

// set project folder here

if "`c(username)'" == "XXXXXXXX " {
	global projectfolder "C:
}

* Organize according to your own folder structure 

global today : di %tdCCYYNNDD date(c(current_date), "DMY")
global data "${projectfolder}\Data"
global output "${projectfolder}\Outputs"
global tables "${output}\Tables"
global figures "${output}\Figures"
global dofiles "${projectfolder}\Code"
adopath + "${dofiles}\"


cd "${projectfolder}"



// files


	local matching							0
	local sumstats							0
	local mainregressions					0
	local heterogeneity						0
	local robustness						1
	local mechanisms						0
	local event								0
	local eventcol9							0
	
// dos



if `sumstats' {	
	include	"${dofiles}\03_SummaryStatisticsNo2019.do"
} 

if `mainregressions' {	
	include	"${dofiles}\04_MainRegressionsNo2019.do"
}

if `heterogeneity' {	
	include	"${dofiles}\05_ByStateRegressionsNo2019.do"
}
if `robustness' {	
	include	"${dofiles}\06_RobustnessNo2019.do"
}
if `mechanisms' {	
	include	"${dofiles}\07_MechanismsNo2019.do"
}
if `event' {	
	include	"${dofiles}\08_Event_No2019.do"
}
if `eventcol9' {	
	include	"${dofiles}\08_EventCol9.do"
}
